package draw;

import game.GameField;

import javax.swing.JFrame;

import world.NameGenerator;

public class Main {
	public static void main(String[] args) {

		NameGenerator gen = new NameGenerator();
		System.out.println("Geological report");
		for (int i = 0; i < 1000; i++) {
			System.out.println("	 " + gen.generateMineral());
		}

		int sizex = 250;
		int sizey = 250;

		JFrame frame = new JFrame();
		GameField field = new GameField(sizex, sizey);
		DrawPanel panel = new DrawPanel(sizex, sizey, field);

		frame.setResizable(false);
		frame.setContentPane(panel);
		frame.setVisible(true);
		frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);
		frame.pack();

	}
}
